<%= form_for(@post) do |f| %>
  <% if @post.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:</h2>

      <ul>
      <% @post.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
  
  <%= f.label :title %>
  <%= f.text_field :title %>

  <%= f.label :content %>
  <%= f.cktext_area :content, :ckeditor => { :width => 800, :height => 400 } %>
  
  <%= f.label :info %>
  <% if @post.new_record? %>
    <%= cktext_area :post, :info, :value => "Defaults info content", :id => "new_info_content" %>
  <% else %>
    <%= cktext_area :post, :info, :cols => 50, :rows => 70 %>
  <% end %>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
